# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=d-spy
pkgver=1.2.0
pkgrel=0
pkgdesc="Like d-feet, but written in C and blisteringly fast"
url="https://gitlab.gnome.org/GNOME/d-spy"
license="GPL-3.0-or-later"
arch="all !s390x !riscv64" # limited by gtk4.0 and libadwaita
makedepends="meson glib-dev gtk4.0-dev libadwaita-dev"
subpackages="$pkgname-dev"
source="https://gitlab.gnome.org/GNOME/d-spy/-/archive/$pkgver/d-spy-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
591c84108077e16173a8ee473dc3ba395db0275aadc2d33a0261bb6ccf9fffc685a0fcdbeb5ccbb9e4f221ecc2129e2878387328bdce4e67fe4891cfcd40df62  d-spy-1.2.0.tar.gz
"
